package com.morningstar.qs.basic.db.bean;

import java.io.Serializable;

/**
 * This is an object that contains data related to the QSLPLUserMap
 * table. Do not modify this class because it will be overwritten if the
 * configuration file related to this class is modified.
 * 
 * @hibernate.class table="QSLPLUserMap"
 */

public class QSLPLUserMap implements Serializable {
	/*
	 * public static String REF = "QSLPLUserMap"; public static
	 * String PROP_LAST_UPDATE_TIME = "lastUpdateTime"; public static String PROP_ID =
	 * "id";
	 */
	
	/**
	 * 
	 */
	private static final long serialVersionUID = 8093134182157751407L;

	// constructors
	public QSLPLUserMap() {
	}
	
	public QSLPLUserMap(String repId, String userEmail) {
		this.repId = repId;
		this.userEmail = userEmail;
	}

	// private int hashCode = Integer.MIN_VALUE;

	// composite primary key
	private String repId;
	private String userEmail;

	// fields
	private java.util.Date lastUpdateTime;

	/**
	 * Return the value associated with the column: LastUpdateTime
	 */
	public java.util.Date getLastUpdateTime() {
		return lastUpdateTime;
	}

	/**
	 * Set the value related to the column: LastUpdateTime
	 * 
	 * @param lastUpdateTime
	 *            the LastUpdateTime value
	 */
	public void setLastUpdateTime(java.util.Date lastUpdateTime) {
		this.lastUpdateTime = lastUpdateTime;
	}

	@Override
	public String toString() {
		return "QSLPLUserMap [lastUpdateTime=" + this.lastUpdateTime
				+ ", repId=" + this.repId + ", userEmail=" + this.userEmail
				+ "]";
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result
				+ ((this.repId == null) ? 0 : this.repId.hashCode());
		result = prime * result
				+ ((this.userEmail == null) ? 0 : this.userEmail.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		QSLPLUserMap other = (QSLPLUserMap) obj;
		if (this.repId == null) {
			if (other.repId != null)
				return false;
		} else if (!this.repId.equals(other.repId))
			return false;
		if (this.userEmail == null) {
			if (other.userEmail != null)
				return false;
		} else if (!this.userEmail.equals(other.userEmail))
			return false;
		return true;
	}

	public String getRepId() {
		return this.repId;
	}

	public void setRepId(String repId) {
		this.repId = repId;
	}

	public String getUserEmail() {
		return this.userEmail;
	}

	public void setUserEmail(String userEmail) {
		this.userEmail = userEmail;
	}
	
}